SodCashRecordV5
SodCashRecords contain a start-of-day currency position that derived from dividend or corporate action being applied to a prior period position. These records are computed and published by SR rotation servers.
METADATA
| Attribute | Value |
|---|---|
| Topic | 4740-risk-v5 |
| MLink Token | ClientRisk |
| Product | SRRisk |
| accessType | SELECT |
| MLink Endpoint | MLink-Order |
Table Definition
| Field | Type | Key | Default Value | Comment |
|---|---|---|---|---|
| accnt | VARCHAR(16) | PRI | '' | |
| currency | enum - Currency | PRI | 'None' | |
| tradeDate | DATE | PRI | '1900-01-01' | |
| srcTransaction | enum - SrcTransaction | PRI | 'None' | |
| srcSecKey_at | enum - AssetType | PRI | 'None' | prior period sec key that this position record derived from if any |
| srcSecKey_ts | enum - TickerSrc | PRI | 'None' | prior period sec key that this position record derived from if any |
| srcSecKey_tk | VARCHAR(12) | PRI | '' | prior period sec key that this position record derived from if any |
| srcSecKey_yr | SMALLINT UNSIGNED | PRI | 0 | prior period sec key that this position record derived from if any |
| srcSecKey_mn | TINYINT UNSIGNED | PRI | 0 | prior period sec key that this position record derived from if any |
| srcSecKey_dy | TINYINT UNSIGNED | PRI | 0 | prior period sec key that this position record derived from if any |
| srcSecKey_xx | DOUBLE | PRI | 0 | prior period sec key that this position record derived from if any |
| srcSecKey_cp | enum - CallPut | PRI | 'Call' | prior period sec key that this position record derived from if any |
| srcSecType | enum - SpdrKeyType | PRI | 'None' | |
| srcTradeDate | DATE | PRI | '1900-01-01' | prior period trade date that this position record derived from |
| clientFirm | VARCHAR(16) | PRI | '' | SR assigned client firm |
| srCashAmount | DOUBLE | 0 | ||
| clrCashAmount | DOUBLE | 0 | ||
| comment | TINYTEXT | '' | source description if any | |
| timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| accnt | 1 |
| currency | 2 |
| tradeDate | 3 |
| srcTransaction | 4 |
| srcSecKey_tk | 5 |
| srcSecKey_yr | 6 |
| srcSecKey_mn | 7 |
| srcSecKey_dy | 8 |
| srcSecKey_xx | 9 |
| srcSecKey_cp | 10 |
| srcSecKey_at | 11 |
| srcSecKey_ts | 12 |
| srcSecType | 13 |
| srcTradeDate | 14 |
| clientFirm | 15 |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRRisk`.`MsgSodCashRecordV5`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','AUD','BRL','CAD','CHF','CNH','CNY','EUR','GBP','JPY','KRW','MXN','MYR','NOK','NZD','SEK','TRY','USD','USDCents','CZK','ZAR','HUF','USX','GBX','DKK','GEL') */
`currency` = 'None'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a ENUM('None','ExAsTrans','Dividend','CashTakeout','SecLending') */
`srcTransaction` = 'None'
AND
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`srcSecKey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`srcSecKey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`srcSecKey_tk` = 'Example_srcSecKey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`srcSecKey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`srcSecKey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`srcSecKey_dy` = 1
AND
/* Replace with a DOUBLE */
`srcSecKey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`srcSecKey_cp` = 'Call'
AND
/* Replace with a ENUM('None','Stock','Future','Option','MLeg') */
`srcSecType` = 'None'
AND
/* Replace with a DATE */
`srcTradeDate` = '2022-01-01'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
Doc Columns Query
SELECT * FROM SRRisk.doccolumns WHERE TABLE_NAME='SodCashRecordV5' ORDER BY ordinal_position ASC;